using System;
using System.Collections.Generic;
using System.Text;

namespace AgilePlannerDT.Persister
{
    public class IndexCardNotFoundException : Exception
    {
        protected long id;

        public IndexCardNotFoundException()
            : base("ID does not refer to either StoryCard, Iteration or Backlog!")
        {
        }

        public IndexCardNotFoundException(String msg)
            : base(msg)
        {
        }

        public IndexCardNotFoundException(long id)
            : base("Could not find IndexCard with ID: " + id)
        {
            this.id = id;
        }

        public IndexCardNotFoundException(String msg, long id)
            : base(msg)
        {
            this.id = id;
        }

        public long ID
        {
            get { return this.id; }
            set { this.id = value; }
        }

    }
}
